#include "DataStructure/Input/Constraint/MPCADDData.h"

using namespace SG::DataStructure;

/// @brief 判断两个MPCADDData是否相等
/// @param lhs
/// @param rhs
/// @return
bool SG::DataStructure::FEM::operator== (const MPCADDData& lhs, const MPCADDData& rhs)
{
    if (lhs.m_sId != rhs.m_sId)
    {
        return false;
    }
    if (lhs.m_subSets != rhs.m_subSets)
    {
        return false;
    }
    if (lhs.m_domainId != rhs.m_domainId)
    {
        return false;
    }
    return true;
}

/// @brief 比较两个MPCADDData的大小
/// @param SGDataA
/// @param SGDataB
/// @return
bool FEM::operator< (const MPCADDData& SGDataA, const MPCADDData& SGDataB)
{
    return SGDataA.m_sId < SGDataB.m_sId;
}